package com.wck.car.controller;

import com.wck.car.CarBrandInfoService;
import com.wck.car.model.CarBrandInfo;
import com.wck.car.oyz.CarBrandInfoType;
import com.wck.car.oyz.SpiderCar;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class CarBrandController {

    @Resource
    CarBrandInfoService carBrandInfoService;

    @PostMapping("/getBrandInfoList")
    public void getBrandInfoList() {
        List<CarBrandInfo> html = CarBrandInfoType.getHtml();
        carBrandInfoService.saveBatch(html);
    }

}
